package com.henry.web;


import com.henry.web.vo.Response;
import com.henry.web.vo.SysTplPconfigRequestBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;


/**
 * <p>
 * 代码生成器，配置信息 前端控制器111
 * </p>
 *
 * @author zhenggui.wu
 * @since 2017-06-01 16:11:09
 */
@RestController
@RequestMapping("sycn")
public class SycnController {

    @Autowired
    private CASUtils1 cASUtils1;


    /**
     * 保存
     */
    @RequestMapping(value = "/sycn.do", method = RequestMethod.POST)
    public Response save(SysTplPconfigRequestBean sysTplPconfigRequestBean){
        Response response=new Response();
        cASUtils1.setCurrLong(0+"#"+0);
        boolean f=cASUtils1.updateStateLongSnc(sysTplPconfigRequestBean.getId(),sysTplPconfigRequestBean.getStatus());
        System.out.println("====>>>>"+f);
        if(f){
            if(!false){
                response.setFail();
            }else{
                response.setSuccess();
            }
        }else{
            response.setFail();
        }

        return response;
    }

}